#!/usr/bin/env python
#-*- coding:utf-8 -*-
from scrapy.cmdline import execute
import sys
import os
#print(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
#scrpay crawl spider_name  -s LOG_FILE=all.log
execute(['scrapy', 'crawl', 'basic'])
#execute(['scrapy', 'crawl', 'basic','-s','LOG_FILE=all.log'])
# 你需要将此处的spider_name替换为你自己的爬虫名称e

